﻿<%@ page language="java" import="java.util.*,org.yoao.crm.bean.Session" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Session userSession = (Session)session.getAttribute("userSession");
String info = (String)request.getAttribute("Message");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>个人中心</title>
<jsp:include page="../public/publicJs.jsp" flush="false"></jsp:include>
<script src="<%=basePath%>js/validator.js"></script>
</head>
<body topmargin="0" leftmargin="0" class="dialog" onLoad="public_onload();">
<form name="form1" method="post" action="<%=basePath%>user.crm?method=mp" onSubmit="return checkData(this);">
	<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="maintable">
	  <tr valign="top" class="tree_title_txt">
			<td class="tree_title_txt" height=26 align=center valign="middle">修改密码</td>
	  </tr>
	 <tr valign="top"> 
	 <td>
	<center>	
	<div class="tabBody2">
	 <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" class="tab_table_title">
   	 <tr>
      <td class="Form_BBS_Lable" width="160" width="14%" valign="middle">&nbsp;&nbsp;用户名：</td>
      <td class="Form_BBS_td" width="86%" valign="middle"><%=userSession.getUserName()%></td>
    </tr>   
    <tr>
      <td class="Form_BBS_Lable" width="160" width="14%" valign="middle">&nbsp;&nbsp;昵称：</td>
      <td class="Form_BBS_td" width="86%" valign="middle">
	  	<input name="nickName" type="text" id="nickName" class="text_220" style="width:250px" value="<%=userSession.getNickName()%>" Require="true"/>&nbsp;<span class="biTian">*</span>
	  </td>
    </tr>  
    <tr>
      <td class="Form_BBS_Lable" width="160" width="14%" valign="middle">&nbsp;&nbsp;旧密码：</td>
      <td class="Form_BBS_td" width="86%" valign="middle">
	  	<input name="opassWord" type="password" id="opassWord" class="text_220" style="width:250px" value="" Require="true"/>&nbsp;<span class="biTian">*</span>
	  </td>
    </tr>  
    <tr>
      <td class="Form_BBS_Lable" width="160" width="14%" valign="middle">&nbsp;&nbsp;新密码：</td>
      <td class="Form_BBS_td" width="86%" valign="middle">
	  	<input name="npassWord" type="password" id="npassWord" class="text_220" style="width:250px" value="" Require="true"/>&nbsp;<span class="biTian">*</span>
	  </td>
    </tr>  
    <tr>
      <td class="Form_BBS_Lable" width="160" width="14%" valign="middle">&nbsp;&nbsp;确认密码：</td>
      <td class="Form_BBS_td" width="86%" valign="middle">
	  	<input name="rpassWord" type="password" id="rpassWord" class="text_220" style="width:250px" value="" Require="true"/>&nbsp;<span class="biTian">*</span>
	  </td>
    </tr>  
    </table>	
	</div>
	<center>
	 <div style="margin:12px">	 
	 	<table width=96% align=center border="0" cellspacing="0" cellpadding="0" style="margin-top:-6px">
			<tr>
				<td width="90%" valign="middle"><div id="myLoad" style="text-align:left"></div></td>
				<td width="10%" valign="middle" align="right">					
					<input type="submit" style="margin-right:0px" class="btn3_mouseout" value="保存" />					
				</td>
			</tr>
		</table>
	<%
		if(info != null && info.trim().length()>0){
	%>
			<script type="text/javascript">
				document.getElementById("myLoad").innerHTML = "<img src='<%=basePath%>images/info.gif' alt='数据保存信息' class='icon1' border='0' align='absmiddle'/> <%=info%>";
			</script>
	<%	
		} 
	%> 
	 </div>
 </td>
 </tr>
</table>
</form>
<div id="ly" style="position:absolute;top:0px; filter:alpha(opacity=60); background-color:#777; z-index:2; left:0px; display:none"></div>
<div id="Layer2" align="center" style="display:none; background:#fff; width:160px;height:20px;left:40%;top:40%;position:absolute; padding: 5px 5px 5px 5px; z-index:3; filter:alpha(opacity=60);">
<font color="#FF0000" style="font-size:12px"><img src="<%=basePath%>images/loading.gif" class="icon1" border="0" align="absmiddle"/> 数据保存中,请稍后...</font>
</div>
<script language="javascript">unLock();</script>
</body>
</html>